#ifndef  _ICC_TIMER_HANDLE_H_
#define  _ICC_TIMER_HANDLE_H_

#include "CC_Timer_Handler.h"
#include <vector>
#include <map>

class  BYTimerOject : public TimerOutEvent
{
	typedef std::map<int, CCTimer*>  BYTimerList;
	friend class CCTimer;
public:
	BYTimerOject(){};
	virtual ~BYTimerOject();

//interface
	int StartTimer(int TimerID, long second, bool isloop=false);
	int StartTimerMillisecond(int TimerID, long millisecond, bool isloop = false);
	int StopTimer(int TimerID);
	virtual int OnBYTimeOut(int TimerID) = 0;
	

public:
	virtual int ProcessOnTimerOut(int TimerId);
	CCTimer* GetTimer(int TimerID);
	void DelTimer(int TimerID);
	BYTimerList  m_nTimerController;
};


#endif

